package com.egao.common.module.company.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lym
 * @date 2023/9/22 10:19
 */
@Data
@ApiModel(description = "宣讲会修改记录")
@TableName("preach_log")
public class PreachLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("宣讲会ID")
    private Integer preachId;

    @ApiModelProperty("举办时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date holdTime;

    @ApiModelProperty("举办时间一时间类型 1上午 2下午 3晚上")
    private Integer holdTimeType;

    @ApiModelProperty("场地名称")
    private String fieldName;

    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("逻辑删除 0正常 1删除")
    @TableLogic
    private Integer deleted;
}
